<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
    <!-- 引入Vue -->
    <script type="text/javascript" src="../js/vue.js"></script> 
</head>
<body> 
    <div id="root">
       <h1>插值语法</h1>
       <h3>你好，{{name}}</h3>
       <hr/>
       <h1>指令语法</h1>
        <a href="www.baidu.com">点我去百度</a>
        <a v-bind:href="school.url.toUpperCase()">点我去学习 {{school.name}}</a>
        <a :href="school.url" v-bind:x="hello">{{school.name}}点我去尚硅谷学习</a>
    </div>
    
    <script type="text/javascript">
        Vue.config.productionTip = false;
        new Vue({
            el:'#root',
            data:{
                name:'jack',
                school:{
                    name:'尚硅谷',
                    url:'http://www.atguigu.com'
                }
            }
        })
    </script>
</body>
</html>